package cn.iocoder.yudao.module.digital.controller.admin.worksaudio.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 数字人声音作品 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WorksAudioRespVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "4109")
    @ExcelProperty("主键ID")
    private Long id;

    @Schema(description = "资料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("资料名称")
    private String name;

    @Schema(description = "排序")
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "音频文件类型：1-MP3，0-WAV", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "音频文件类型：1-MP3，0-WAV", converter = DictConvert.class)
    @DictFormat("audio_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer type;

    @Schema(description = "文件路径", example = "6559")
    @ExcelProperty("文件路径")
    private String fileId;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}